package com.hayato.demo.client.model;

import java.io.Serializable;

public class ProductModel implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3578893374578095274L;
	private long id;
	private int no;
	private String productName;
	private double unitprice;
	private int capacity;
	
	private Long category2Id;
	
	public ProductModel(int id, int no, String productName, double unitprice,
			int capacity) {
		this.setId(id);
		this.setNo(no);
		this.setProductName(productName);
		this.setUnitprice(unitprice);
		this.setCapacity(capacity);
	}

	public ProductModel() {

	}

	public void setId(long id) {
		this.id = id;
	}

	public long getId() {
		return id;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductName() {
		return productName;
	}

	public void setNo(int no) {
		this.no = no;
	}

	public int getNo() {
		return no;
	}

	public void setUnitprice(double unitprice) {
		this.unitprice = unitprice;
	}

	public double getUnitprice() {
		return unitprice;
	}

	public void setCapacity(int capacity) {
		this.capacity = capacity;
	}

	public int getCapacity() {
		return capacity;
	}

	public Long getCategory2Id() {
		return category2Id;
	}

	public void setCategory2Id( Long category2Id ) {
		this.category2Id = category2Id;
	}
}